<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>健康科普后台管理</title>
    <link rel="stylesheet" type="text/css" href="/css/healthManage.css"/>
    <link rel="stylesheet" type="text/css" th:href="@{~/css/bootstrap.css}" />
    <script th:src="@{~/js/jquery-3.3.1.js}" type="text/javascript" charset="utf-8"></script>
    <script th:src="@{~/js/bootstrap.js}" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<div class="container">
    <div class="row">
<!--         part1   健康科普的后台管理系统-->
        <div class="col-lg-12">
            <h1 class="part1-text text-center">健康科普后台管理系统</h1>
        </div>

        <!-- part2 id name    date -->
        <div class="col-lg-12"  th:each="health,status:${session.healthKnows}">
            <a href="healthPage1.html" >
                <div class="col-lg-7">
                    <span th:text="${status.index + 1}">1</span>
                    <span>.</span>
                    <a th:href="@{/selectByHealthId(id=${health.healthId})}">
                        <span class="part2-updertext"  th:text="${health.healthTitle}">健康科普标题</span>
                    </a>
<!--                    <span class="part2-updertext"  th:text="${health.healthTitle}">健康科普标题</span>-->
                </div>
                <div class="col-lg-3">
                    <span class="part2-updertext small-text" th:text="${health.healthDate}">2021-12-28</span>
                </div>
            </a>
            <div class="col-lg-2">
                <div class="dropdown">
                    <button type="button" class="btn dropdown-toggle" id="dropdownMenu1" data-toggle="dropdown">操作
                        <span class="caret"></span>
                    </button>
                    <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
                        <li role="presentation">
                            <a role="menuitem" tabindex="-1" th:href="@{/selectByHealthId(id=${health.healthId})}">查看</a>
                        </li>
                        <li role="presentation">
                            <a role="menuitem" tabindex="-1" th:href="@{/add(id=${health.healthId})}" >新增</a>
                        </li>
                        <li role="presentation">
                            <a role="menuitem" tabindex="-1" href="#" data-toggle="modal" data-target="#myModal2">修改</a>
                        </li>
                        <li role="presentation">
                            <a role="menuitem" tabindex="-1" th:href="@{/deleteById(id=${health.healthId})}">删除</a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>

        <!-- 分页 -->
        <div class="col-lg-12 text-center">
            <ul class="pagination pagination-lg" th:each="page,status:${session.pages}">
                <li><a th:href="@{/queryByPage3(page=${status.index})}" th:text="${status.index+1}">1</a></li>
            </ul><br>
        </div>
    </div>
</div>
</body>
</html>